import { http } from '@/utils'

export interface Request {
    company: string;
    content: string;
    email: string;
    /**
     * 名称
     */
    name: string;
    phone: string;
    [property: string]: any;
}

export interface Response {
    code: number;
    msg: string;
    [property: string]: any;
}
// var data = JSON.stringify({
//     "name": "string",
//     "company": "string",
//     "phone": "string",
//     "email": "string",
//     "content": "string"
//  });

export function fetchMessageAPI(data:Request) {
    return http.request<Response>({
        method: 'post',
        url: '/message/list/',
        data : data
    })
}